const express=require('express')
const history = require('connect-history-api-fallback');
const app=express()
app.use(history())
app.use(express.static(__dirname+'/static'))
app.get('/person',(request,response)=>{
   response.send({
       name:'123',
       age:'456'
   })
})
app.listen(5005,(err)=>{
    if(!err) console.log('服务器启动成功了!!!')
})